package com.ruoyi.system.domain.dto;

import java.io.Serializable;
import java.util.List;

/**
 * 统计数据传输对象
 * 
 * @author ruoyi
 */
public class StatisticsDTO implements Serializable
{
    private static final long serialVersionUID = 1L;
    
    /** 总数 */
    private Integer total;
    
    /** 通过数量 */
    private Integer passed;
    
    /** 未通过数量 */
    private Integer failed;
    
    /** 职位分布数据 */
    private List<PositionData> positionData;
    
    public StatisticsDTO() {
    }
    
    public StatisticsDTO(Integer total, Integer passed, Integer failed, List<PositionData> positionData) {
        this.total = total;
        this.passed = passed;
        this.failed = failed;
        this.positionData = positionData;
    }
    
    public Integer getTotal() {
        return total;
    }
    
    public void setTotal(Integer total) {
        this.total = total;
    }
    
    public Integer getPassed() {
        return passed;
    }
    
    public void setPassed(Integer passed) {
        this.passed = passed;
    }
    
    public Integer getFailed() {
        return failed;
    }
    
    public void setFailed(Integer failed) {
        this.failed = failed;
    }
    
    public List<PositionData> getPositionData() {
        return positionData;
    }
    
    public void setPositionData(List<PositionData> positionData) {
        this.positionData = positionData;
    }
    
    /**
     * 职位数据内部类
     */
    public static class PositionData implements Serializable {
        private static final long serialVersionUID = 1L;
        
        /** 职位名称 */
        private String name;
        
        /** 数量 */
        private Integer value;
        
        public PositionData() {
        }
        
        public PositionData(String name, Integer value) {
            this.name = name;
            this.value = value;
        }
        
        public String getName() {
            return name;
        }
        
        public void setName(String name) {
            this.name = name;
        }
        
        public Integer getValue() {
            return value;
        }
        
        public void setValue(Integer value) {
            this.value = value;
        }
    }
} 